const users = require("../../sql/users");
const sql = require('../../sql/mysql');
const staff = require('../../sql/staffs');
module.exports = (req,res)=>{
  console.log(req.fields._id);
  sql.set(staff,{_id:req.fields._id},req.fields).then(()=>{
     res.send({
        code:0,
        msg:"编辑成功"
     })
  })
}